package org.skyemoon.hbase.hbasetest.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("electronic")
public class ElectronicDO {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String flightType;

    private String flightNum;

    private String flightTask;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date flightTime;

    @DateTimeFormat(pattern = "hh:mm:ss")
    private Date sampleTime;

    private Integer objectCount;

    private Integer objectType;

    private Integer radioId;

    private Double distance;

    private Double position;

    private Double longitude;

    private Double latitude;

    private Double frequency;

    private Double pri;

    private Double pulseWidth;
}
